<%@ page language="java"  pageEncoding="UTF-8"%>
<jsp:include page="../inc.jsp"></jsp:include>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/jsp/citys/list.js"></script>

<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false">
		<table id="_treeDatagrid"></table>	
	</div>
</div>

<!-- 右键菜单 -->
<div>
	<div id="treeridContextMenu" class="easyui-menu" style="width:200px">
		<div data-options="iconCls:'icon-add'" onclick="addRow()">增加</div>
		<div data-options="iconCls:'icon-remove'" onclick="deleteRow()">删除</div>
		<div data-options="iconCls:'icon-edit'" onclick="updateRow()">修改</div>
		<div class="menu-sep"></div>
		<div data-options="iconCls:'icon-page_white_paintbrush'" onclick="approvedRowHandler()">开通城市</div>
		<div data-options="iconCls:'icon-feed'" onclick="bannerRowHandler()">轮播管理</div>
		<div class="menu-sep"></div>
		<div data-options="iconCls:'icon-redo'" onclick="unselectRow()">取消选中</div>
		<div data-options="iconCls:'icon-reload'" onclick="reloadRow()">刷新</div>
	</div>
</div>

<!-- 添加菜单dialog -->
<div id="dialogAddRow" style="width:400px;height:200px;padding:10px;display:none;overflow:hidden;">
	<form id="formAddRow" method="post" style="width: 100%; height: 100%;">
		<input type="hidden" name="id" id="id"/>
		<table class="dialogTable">
			<tr>
				<th style="text-align: right;">上级行政区</th>
				<td><input id="pid" name="pid" class="easyui-combotree" data-options="required:true,editable:false,valueField:'id',textField:'text',url:'${pageContext.request.contextPath}/admin/citys/listTree'" /></td>
			</tr>
			<tr>
				<th style="text-align: right;">行政区编号</th>
				<td><input id="number" name="number" class="easyui-validatebox" data-options="required:true,validType:'maxLength[50]'" /></td>
			</tr>
			<tr>
				<th style="text-align: right;">行政区名称</th>
				<td><input id="text" name="text" class="easyui-validatebox" data-options="required:true,validType:'maxLength[50]'" /></td>
			</tr>
		</table>
	</form>
</div>
</body>  
</html>